

package com.chuanke.ckfamily.service.base;


public enum FailCode {
    
    APP(1,"系统错误"),

    RELOGIN(2, "重新登录"),

    INVALITOKEN(100,"无效token"),

    DECRYPTERROR(101,"RSA解密失败"),

    USER_NOT_EXIST(102,"用户不存在"),
    
    FAMILY_NOT_EXIST(103,"家族不存在"),
    
    FAMILY_MEMBER_NOT_EXIST(104,"不在家族成员中"),
    
    FAMILY_TID_MATCH(105,"已退出此家族"),
    
    FAMILY_MUTE_ERROR(106,"有效时间内重复禁言"),
    
    FRIEND_RELATION_NOT_EXIST(300, "好友关系不存在"),
	
	FRIEND_APPLY_NOT_EXIST(301, "好友申请不存在"),

    PARAMS_ERROR(106,"参数无效,格式不对、非法值"),
    
    PERMISSIONS_FAMILY_OWNER(107,"权限不足，必须族长操作"),
    
    WX_EXCEPTION(601,"网易异常"), 

    WX_ERROR(602,"网易错误"),

    REDPACKET_ONINFAMILY(701, "只能领取本家族的红包"),

    REDPACKET_EMPLTY(702, "手慢了，该红包已领完了"),

    REDPACKET_TIMEOUT(703, "来晚了，红包已过期"),

    REDPACKET_NOROLE(704, "您今天还没有分享文章\n不能领取红包"),

    REDPACKET_MONEYNO(705, "红包总金额不够分"),

    REDPACKET_LEDDERMONEYLOST(706, "余额不足，扣款失败");
    
    private int code;
    
    private String msg;

    FailCode(int code,String msg) {
        this.code = code;
		this.msg = msg;
    }

    public int getCode() {
        return code;
    }

	public String getMsg() {
		return msg;
	}
}
